<%@ page language="java" import="java.util.*,orm.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'CTPWeekNetwork.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="reference/images/Beike.css" rel="stylesheet" type="text/css">
	<style type="text/css">
	 div{
	 overflow:hidden;
	 width:130px;
	 height:15px;
	 }
	 .jtz {
		background-attachment: scroll;
		background-image: url(<%=request.getContextPath() %>/reference/images/jtz.gif);
		background-repeat: no-repeat;
		background-position: center center;
	}
	</style>
	<style type="text/css">
	#1{
		position: absolute;
		left:332px;
		top:50px;
		border:0px;
		width:160px;
		height:115px;
		overflow: hidden;
		text-align:center;
	}
	#2{
		position:absolute;
		left:116px;
		top:215px;
		border:0px;
		width:160px;
		height:115px;
		overflow: hidden;
		text-align:center;
	}
	#3{
		position:absolute;
		left:548px;
		top:213px;
		border:0px;
		width:160px;
		height:115px;
		overflow: hidden;
		text-align:center;
	}
	#4{
		position:absolute;
		left:136px;
		top:389px;
		border:0px;
		width:160px;
		height:115px;
		overflow: hidden;
		text-align:center;
	}
	#5{
		position:absolute;
		left:526px;
		top:388px;
		border:0px;
		width:160px;
		height:115px;
		overflow: hidden;
		text-align:center;
	}
	#6{
		position:absolute;
		left:351px;
		top:271px;
		border:0px;
		width:120px;
		height:94px;
		overflow: hidden;
		text-align:center;
	}
</style>
	
  </head>
  
  <BODY>
  	<%
  		Map<Integer,List<String>> developmentDomainActivityMapping = 
  			(Map<Integer,List<String>>)request.getAttribute("developmentDomainActivityMapping");
  		CollectivityTeachingPlanWeek ctpw = (CollectivityTeachingPlanWeek)request.getAttribute("CTPWArr");
  		String cWeekArrangeID = (String)request.getAttribute("cWeekArrangeID");
  	%>
	<form action="" method="post" enctype="multipart/form-data" name="form2" id="form2">

  <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="7"><img src="reference/images/table_1_01.gif" width="7" height="38"></td>
      <td background="reference/images/table_1_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="30"><img src="reference/images/table_1_02.gif" width="30" height="38"></td>
            <td width="200" background="reference/images/table_1_03.gif"><b>集 体 教 学 周 计 划 网 络</b></td>
            <td width="59"><img src="reference/images/table_1_04.gif" width="59" height="38"></td>
            <td>&nbsp;</td>
          </tr>
      </table></td>
      <td width="7"><img src="reference/images/table_1_06.gif" width="8" height="38"></td>
    </tr>
    <tr>
      <td width="7" background="reference/images/table_1_07.gif">&nbsp;</td>
      <td bgcolor="#cfe5f5">
	  	<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#A0C8FA">
          <tr>
            <td height="465" align="center" valign="top" bgcolor="#FFFFFF" class="jtz">
				<div id="1">
			  		<table width="100%" height="108">
						<tr>
						<%
	                  		int intArea3 = 0;
	                  		if(developmentDomainActivityMapping.get(3) == null){
	                  			intArea3 = 0;
	                  		}else{
	                  			intArea3 = developmentDomainActivityMapping.get(3).size();
	                  		}
	                  	%>
                    		<td width="140" align="center" class="font_d"><font color="#FFFFFF">科学领域(<%=intArea3 %>)</font></td>
                  		</tr>
                  		<%
	                    	List<String> area3 = developmentDomainActivityMapping.get(3);
	                    	if(area3!=null){
	                    		for(int i=0;i<(area3.size()>2?2:area3.size());i++){
	                    	%>
	                        <tr>
	                          <td><div title="<%=i+1 %>、<%=area3.get(i) %>"><%=i+1 %>、<%=area3.get(i) %></div></td>
	                        </tr>
	                        <%
	                    		}}
	                        %>
	                        <%if(intArea3 > 2){
		                        	
		                        %>
						<tr>
							<td width="120" align="right" >
								<a href="javascript:void(0);" onclick="itMore(3,'科学领域')">更多</a>
							</td>
						</tr>
						<%} %>
					
				  </table>
			  </div>
				<div id="2">
					<table width="100%">
						<tr>
							<%
			                  		int intArea2 = 0;
			                  		if(developmentDomainActivityMapping.get(2) == null){
			                  			intArea2 = 0;
			                  		}else{
			                  			intArea2 = developmentDomainActivityMapping.get(2).size();
			                  		}
			                  	%>
                    		<td width="140" align="center" class="font_d"><font color="#FFFFFF">语言领域(<%=intArea2 %>)</font></td>
                  		</tr>
						<%
		                    		List<String> area2 = developmentDomainActivityMapping.get(2);
		                    	if(area2!=null){
		                    		for(int i=0;i<(area2.size()>2?2:area2.size());i++){
		                    	%>
		                        <tr>
		                          <td><div title="<%=i+1 %>、<%=area2.get(i) %>"><%=i+1 %>、<%=area2.get(i) %></div></td>
		                        </tr>
		                        <%
		                    		}}
		                        %>
		                        <%if(intArea2 > 2){
		                        	
		                        %>
						<tr>
							<td width="120" align="right" >
								<a href="javascript:void(0);" onclick="itMore(2,'语言领域')">更多</a>
							</td>
						</tr>
						<%} %>
					
					</table>
			  </div>
				<div id="3">
					<table width="100%">
						<tr>
							<%
			                  		int intArea5 = 0;
			                  		if(developmentDomainActivityMapping.get(5) == null){
			                  			intArea5 = 0;
			                  		}else{
			                  			intArea5 = developmentDomainActivityMapping.get(5).size();
			                  		}
			                  	%>
                    		<td width="140" align="center" class="font_d"><font color="#FFFFFF">社会领域(<%=intArea5 %>)</font></td>
                  		</tr>
						<%
		                    		List<String> area5 = developmentDomainActivityMapping.get(5);
			                    	if(area5!=null){
			                    		for(int i=0;i<(area5.size()>2?2:area5.size());i++){
			                    	%>
			                        <tr>
			                          <td><div title="<%=i+1 %>、<%=area5.get(i) %>"><%=i+1 %>、<%=area5.get(i) %></div></td>
			                        </tr>
			                        <%
			                    		}}
			                        %>
			                        <%if(intArea5 > 2){
		                        	
		                        %>
						<tr>
							<td width="120" align="right" >
								<a href="javascript:void(0);" onclick="itMore(5,'社会领域')">更多</a>
							</td>
						</tr>
						<%} %>
					
					</table>
			  </div>
				<div id="4">
					<table width="100%">
						<tr>
							<%
			                  		int intArea1 = 0;
			                  		if(developmentDomainActivityMapping.get(1) == null){
			                  			intArea1 = 0;
			                  		}else{
			                  			intArea1 = developmentDomainActivityMapping.get(1).size();
			                  		}
			                  	%>
                    		<td width="140" align="center" class="font_d"><font color="#FFFFFF">健康领域(<%=intArea1 %>)</font></td>
                  		</tr>
						<%
	                    		List<String> area1 = developmentDomainActivityMapping.get(1);
	                    	if(area1!=null){
	                    		for(int i=0;i<(area1.size()>2?2:area1.size());i++){
	                    	%>
	                        <tr>
	                          <td><div title="<%=i+1 %>、<%=area1.get(i) %>"><%=i+1 %>、<%=area1.get(i) %></div></td>
	                        </tr>
	                        <%
	                    		}}
	                        %>
	                        <%if(intArea1 > 2){
		                        	
		                        %>
						<tr>
							<td width="120" align="right" >
								<a href="javascript:void(0);" onclick="itMore(1,'健康领域')">更多</a>
							</td>
						</tr>
						<%} %>
					
					</table>
			  </div>
				<div id="5">
					<table width="100%">
						<tr>
							<%
			                  		int intArea4 = 0;
			                  		if(developmentDomainActivityMapping.get(4) == null){
			                  			intArea4 = 0;
			                  		}else{
			                  			intArea4 = developmentDomainActivityMapping.get(4).size();
			                  		}
			                  	%>
                    		<td width="140" align="center" class="font_d"><font color="#FFFFFF">艺术领域(<%=intArea4 %>)</font></td>
                  		</tr>
						<%
	                    		List<String> area4 = developmentDomainActivityMapping.get(4);
	                    	if(area4!=null){
	                    		for(int i=0;i<(area4.size()>2?2:area4.size());i++){
	                    	%>
	                        <tr>
	                          <td><div title="<%=i+1 %>、<%=area4.get(i) %>"><%=i+1 %>、<%=area4.get(i) %></div></td>
	                        </tr>
	                        <%
	                    		}}
	                        %>
	                        <%if(intArea4 > 2){
		                        	
		                        %>
						<tr>
							<td width="120" align="right" >
								<a href="javascript:void(0);" onclick="itMore(4,'艺术领域')">更多</a>
							</td>
						</tr>
						<%} %>
					
					</table>
			  </div>
				<div id="6">
					<table width="100%" height="89">
						 <tr>
                    		<td height="83" align="center" valign="middle" class="font_d"><font color="#FFFFFF">第
                    		  <input value="<%=ctpw.getExecutionWeek() %>" name="textfield25" type="text" class="bor_d2" id="textfield45" style="width:30px; height:19px;" maxlength="2">周<br>
                      （<%=ctpw.getWeekThemeName() %>）</font>
				  		   </td>
                  		</tr>
				  </table>
			  </div>
	  		</td>
          </tr>

      	</table>
	  </td>
      <td width="7" background="reference/images/table_1_09.gif">&nbsp;</td>
    </tr>
    <tr>
      <td background="reference/images/table_1_07.gif"><img src="reference/images/table_1_10.gif" width="7" height="22"></td>
      <td background="reference/images/table_1_11.gif" bgcolor="#cfe5f5">&nbsp;</td>
      <td background="reference/images/table_1_09.gif"><img src="reference/images/table_1_12.gif" width="8" height="22"></td>
    </tr>
  </table>
</form>
	</BODY></HTML>
	<script type="text/javascript">
		function itMore(index,activityOptionName){
			
			var h = 600;
			var w = 400;
			var top = (window.screen.availHeight - h)/2;
			var left = (window.screen.availWidth - w)/2;
			var param = 'height='+h+',width='+w+',top='+top+',left='+left+',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no, status=no'
			var url = '<%=request.getContextPath() %>/TeachingPlanArrange/CTeachingPlanWeekInfoFunction?func=CTPWNetworkMore&CWeekArrangeID=<%=cWeekArrangeID%>&ActivityOptionSize='+index+'&ActivityOptionName='+activityOptionName;
			window.open(url,'newwindow',param);
		    
  		}
	</script>
